/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

.ouiRangeDraggable {
  height: calc($ouiFormControlHeight / 2);
  position: absolute;
  top: calc($ouiFormControlHeight / 4);
  pointer-events: none;
  z-index: 2;

  &.ouiRangeDraggable--compressed {
    height: calc($ouiFormControlCompressedHeight / 2);
    top: calc($ouiFormControlCompressedHeight / 4);
  }

  &.ouiRangeDraggable--hasTicks {
    top: 0;
  }

  .ouiRangeDraggle__inner {
    position: absolute;
    left: $ouiRangeThumbWidth;
    right: $ouiRangeThumbWidth;
    top: 0;
    bottom: 0;
  }

  &:not(.ouiRangeDraggable--disabled) {
    .ouiRangeDraggle__inner {
      cursor: grab;
      pointer-events: all;

      &:active {
        cursor: grabbing;
      }
    }
  }
}
